package com.wangcanxuan.www.dao.mapper;

import com.wangcanxuan.www.annotation.orm.ReturnType;
import com.wangcanxuan.www.annotation.orm.Select;
import com.wangcanxuan.www.entity.po.TestTable;
import com.wangcanxuan.www.proxy.constants.ReturnDataType;

import java.util.List;

/**
 * 测试类mapper
 *
 * @author HHLJ
 * @date 2022/03/25
 */
public interface TestMapper extends BaseMapper<TestTable>{

    /**
     * 通过用户名查找对象集合
     *
     * @param userName 用户名
     * @return {@link List}<{@link TestTable}>
     */
    @Select(sql = "SELECT * FROM `test_table` WHERE user_name = ?")
    @ReturnType(returnType = ReturnDataType.OBJECT)
    TestTable objectListByUserName(String userName);
}
